package com.project.myPackage.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Comments implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId( type = IdType.AUTO)
    private Integer comment_id;
    private Integer user_id;
    private Integer product_id;
    private String comment_content;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created_at;
}
